package com.ruoyi.points.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.points.mapper.PointMapper;
import com.ruoyi.points.domain.Point;
import com.ruoyi.points.service.IPointService;
import com.ruoyi.common.core.text.Convert;

/**
 * 位移监测点Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-19
 */
@Service
public class PointServiceImpl implements IPointService 
{
    @Autowired
    private PointMapper pointMapper;

    /**
     * 查询位移监测点
     * 
     * @param pointId 位移监测点主键
     * @return 位移监测点
     */
    @Override
    public Point selectPointByPointId(Long pointId)
    {
        return pointMapper.selectPointByPointId(pointId);
    }

    /**
     * 查询位移监测点列表
     * 
     * @param point 位移监测点
     * @return 位移监测点
     */
    @Override
    public List<Point> selectPointList(Point point)
    {
        return pointMapper.selectPointList(point);
    }

    /**
     * 新增位移监测点
     * 
     * @param point 位移监测点
     * @return 结果
     */
    @Override
    public int insertPoint(Point point)
    {
        return pointMapper.insertPoint(point);
    }

    /**
     * 修改位移监测点
     * 
     * @param point 位移监测点
     * @return 结果
     */
    @Override
    public int updatePoint(Point point)
    {
        return pointMapper.updatePoint(point);
    }

    /**
     * 批量删除位移监测点
     * 
     * @param pointIds 需要删除的位移监测点主键
     * @return 结果
     */
    @Override
    public int deletePointByPointIds(String pointIds)
    {
        return pointMapper.deletePointByPointIds(Convert.toStrArray(pointIds));
    }

    /**
     * 删除位移监测点信息
     * 
     * @param pointId 位移监测点主键
     * @return 结果
     */
    @Override
    public int deletePointByPointId(Long pointId)
    {
        return pointMapper.deletePointByPointId(pointId);
    }
}
